package popcorn.ticket.entity;

import java.io.Serializable;
import java.util.Date;

public class Orders implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = -7887940222605260751L;

	private Integer orderid;

    private Users users;
    
    private Schedule schedule;
    private int movieid;
    //电影名称
    private String moviename;
    //电影图片
    private String moviepic;
    //影厅名称
    private String hallname;
    //播放时间
    private int duration;
    //电影结束时间
    private Date endtime;
    
    private String seat;

    private Double orderprice;

    private Date ordertime;

    private Date paytime;

    private Integer orderstatus;

    private Integer ordercondition;
    
    //存储最近一周的日期
    private String days;
    
	/**
	 * @return the movieid
	 */
	public int getMovieid() {
		return movieid;
	}

	/**
	 * @param movieid the movieid to set
	 */
	public void setMovieid(int movieid) {
		this.movieid = movieid;
	}

	/**
	 * @return the days
	 */
	public String getDays() {
		return days;
	}

	/**
	 * @param days the days to set
	 */
	public void setDays(String days) {
		this.days = days;
	}
	/**
	 * @return the duration
	 */
	public int getDuration() {
		return duration;
	}

	/**
	 * @param duration the duration to set
	 */
	public void setDuration(int duration) {
		this.duration = duration;
	}

	/**
	 * @return the endtime
	 */
	public Date getEndtime() {
		return endtime;
	}

	/**
	 * @param endtime the endtime to set
	 */
	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }
    
    /**
	 * @return the moviename
	 */
	public String getMoviename() {
		return moviename;
	}

	/**
	 * @param moviename the moviename to set
	 */
	public void setMoviename(String moviename) {
		this.moviename = moviename;
	}

	/**
	 * @return the hallname
	 */
	public String getHallname() {
		return hallname;
	}

	/**
	 * @param hallname the hallname to set
	 */
	public void setHallname(String hallname) {
		this.hallname = hallname;
	}
	
    /**
	 * @return the moviepic
	 */
	public String getMoviepic() {
		return moviepic;
	}

	/**
	 * @param moviepic the moviepic to set
	 */
	public void setMoviepic(String moviepic) {
		this.moviepic = moviepic;
	}

	public Orders() {
		// TODO Auto-generated constructor stub
	}
    
    public String getSeat() {
        return seat;
    }



	@Override
	public String toString() {
		return "Orders [orderid=" + orderid + ", users=" + users + ", schedule=" + schedule + ", seat=" + seat
				+ ", orderprice=" + orderprice + ", ordertime=" + ordertime + ", paytime=" + paytime + ", orderstatus="
				+ orderstatus + ", ordercondition=" + ordercondition + "]";
	}

	/**
	 * @return the users
	 */
	public Users getUsers() {
		return users;
	}

	/**
	 * @param users the users to set
	 */
	public void setUsers(Users users) {
		this.users = users;
	}

	/**
	 * @return the schedule
	 */
	public Schedule getSchedule() {
		return schedule;
	}

	/**
	 * @param schedule the schedule to set
	 */
	public void setSchedule(Schedule schedule) {
		this.schedule = schedule;
	}

	public void setSeat(String seat) {
        this.seat = seat == null ? null : seat.trim();
    }

    public Double getOrderprice() {
        return orderprice;
    }

    public void setOrderprice(Double orderprice) {
        this.orderprice = orderprice;
    }
    

	/**
	 * @return the ordertime
	 */
	public Date getOrdertime() {
		return ordertime;
	}

	/**
	 * @param ordertime the ordertime to set
	 */
	public void setOrdertime(Date ordertime) {
		this.ordertime = ordertime;
	}

	/**
	 * @return the paytime
	 */
	public Date getPaytime() {
		return paytime;
	}

	/**
	 * @param paytime the paytime to set
	 */
	public void setPaytime(Date paytime) {
		this.paytime = paytime;
	}

	public Integer getOrderstatus() {
        return orderstatus;
    }

    public void setOrderstatus(Integer orderstatus) {
        this.orderstatus = orderstatus;
    }

    public Integer getOrdercondition() {
        return ordercondition;
    }

    public void setOrdercondition(Integer ordercondition) {
        this.ordercondition = ordercondition;
    }
}